package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Region;
import cn.wolfcode.wolf2w.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 区域持久化操作接口
 */
public interface RegionRepsitory extends MongoRepository<Region, String> {

    /**
     * 热门区域并排序
     * @param state
     * @return
     */
    List<Region> findByIshotOrderBySequence(int state);
}
